package org.monkeyk.security;

/**
 * @author Shengzhao Li
 */
public class SecurityHolderBean {

    private static SecurityHolder securityHolder;

    /**
     * Default constructor
     */
    public SecurityHolderBean() {
    }

    public static Object currentPrincipal() {
        return securityHolder.currentPrincipal();
    }


    public void setSecurityHolder(SecurityHolder securityHolder) {
        SecurityHolderBean.securityHolder = securityHolder;
    }
}
